<!DOCTYPE html>
<html>
<head>
	<include file="Public/head"/>
</head>
<body>
<block name="body"></block>
<block name="other"></block>
<script type='text/javascript' src='__PUBLIC__/js/jquery-3.1.1.min.js' charset='utf-8'></script>

<script>
	$.config = {router: false}
</script>

<script type='text/javascript' src='__PUBLIC__/light7/js/light7.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/light7/js/light7-city-picker.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/light7/js/light7-swipeout.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/light7/js/light7-swiper.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/light7/js/i18n/cn.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/light7/js/i18n/cn.js' charset='utf-8'></script>
<!--<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>-->
<script src="__PUBLIC__/com/com.functions.js"></script>
<block name="script"></block>
<script>
	$(function(){
		// plan A
//		var $bottom = $('.tab-item.external');
//		var value = localStorage.getItem('bottom');
//			if (value == '' || value == null) {
//				$('.bar.bar-tab.bottomBar').children('.tab-item.external:first').addClass('active');
//			} else {
//				$bottom.each(function(){
//					if (value == $(this).children('.tab-label').html()) {
//						$(this).addClass('active');
//					}
//				});
//		}
//		$bottom.click(function(){
//			var flag = $(this).children('.tab-label').html();
//			localStorage.setItem('bottom',flag);
//		});

		//plan B
		var $bottom2 = $('.tab-item.external .tab-label');
		var hash = window.location.hash;
		$bottom2.each(function(){
			if (hash == '#'+$(this).html()) {
				$(this).closest('.tab-item.external').addClass('active');
			}
		});
		$("[data-role='oc-channel']").click(function () {
			$(this).siblings().find('.aboveBox').hide();
			var myChild = $(this).find('.aboveBox');
			myChild.toggle();
		});
	});
	$.init();
</script>
</body>
</html>